﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConsoleApp1.game1;
using ConsoleApp1.game2;
using ConsoleApp1.game3;

namespace ConsoleApp1
{
    class Program
    {

        static void Main(string[] args)
        {
            //product pru = new product();
            Shooting pru1 = new Shooting();
            dota pru2 = new dota();
            existence pru3 = new existence();
            pru1.name = "守望先锋";
            pru1.category = "射击类";
            pru1.count = 500;
            pru1.price = 29;
            pru1.remarks = "射击类游戏";
            pru1.timedate = DateTime.Now.ToString();
            //========================================================================
            pru2.name = "英雄联盟";
            pru2.category = "dota类";
            pru2.count = 100;
            pru2.price = 29;
            pru2.remarks = "射击类游戏";
            pru2.timedate = DateTime.Now.ToString();
            //========================================================================
            pru3.name = "方舟";
            pru3.category = "生存类";
            pru3.count = 50;
            pru3.price = 29;
            pru3.remarks = "射击类游戏";
            pru3.timedate = DateTime.Now.ToString();
            //操作====================================================================
            for (int j = 0; j < 3; j++)
            {
                Console.WriteLine("选择需要操作的游戏名字：");
                string i = Console.ReadLine();
                if (pru1.name == i)
                {
                    pru1.prod();
                }
                else if (pru2.name == i)
                {
                    pru2.prod1();
                }
                else if (pru3.name == i)
                {
                    pru3.prod2();
                }
            }
        }
        
        
        
    }
}
